<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Html DOM</title>
    <script src="../js/angular.min.js"></script>
</head>
<body>
<div ng-app="" ng-init="mySwitch=true;hour=10">
    <!-- ng-disabled -->
    <p>
        <button ng-disabled="mySwitch">click me !</button>
    </p>
    <input type="checkbox" ng-model="mySwitch">按钮
    <p>{{mySwitch}}</p>

    <p ng-show="true">you can see it</p>
    <p ng-hide="true">you can't see it</p>
    <!--加条件-->
    <p ng-show="hour>12">you can see it if hour > 12</p>
</div>
</body>
</html>